﻿{%extends "base.html"%}

{%block menu%}
		    <li><a href="/" class="navbut3"><span>Home</span></a></li>
		    <li><a href="/publicadas" class="navbut3"><span>Top Actions</span></a></li>
		    <li><a href="/novas" class="navbut3"><span>New Actions</span></a></li>
		    <li><a href="/enviar" class="navbut4"><span>Submit</span></a></li>
		    <li><a href="/perfil" class="navbut3"><span>Profile</span></a></li>		
		    <li><a href="/sobre" class="navbut3"><span>About</span></a></li>
{%endblock%}

{%block body%}
                <fieldset><legend><b>Action Details</b></legend>
	<form  method="post" name="thisform" id="thisform" enctype="multipart/form-data">
			<label>Title:</label><br/>
			<input type="text" id="title" class="text" name="title" value="" size="60" maxlength="120" />		
			<br /><br/>		
			<label>Tags:</label>
			<strong>Short, generic words separated by ',' (comma) </strong> Example: <em> web, farm, health </em><br/>
			<input type="text" id="tags" name="tags" value="" size="60" maxlength="140" /><br /><br />		
			<label>Description:</label> Write your own description of the action you are submitting. It should be about 2 to 4 sentences long. <br/><br/>
			<textarea name="bodytext" rows="10" cols="60" id="bodytext" WRAP=SOFT onkeyup="if(this.form.summarycheckbox.checked == false) {this.form.summarytext.value = this.form.bodytext.value.substring(0, 350);}textCounter(this.form.summarytext,this.form.remLen, 350);"></textarea><br />
			<br /><br />				
			<label>Category:</label>Please choose the most appropriate category.<br/>
			<select name="category">

						   <option value = "1">
				  				  				  &nbsp;&nbsp;&nbsp;
				  Group Fundraiser 
				  &nbsp;&nbsp;&nbsp;       
				  			  </option>
						   <option value = "2">
				  				  				  &nbsp;&nbsp;&nbsp;
				  Campaign 
				  &nbsp;&nbsp;&nbsp;       
				  			  </option>

						   <option value = "3">
				  				  				  &nbsp;&nbsp;&nbsp;
				  Pledged Action
				  &nbsp;&nbsp;&nbsp;       
				  			  </option>
						   <option value = "4">
				  				  				  &nbsp;&nbsp;&nbsp;
				  Event 
				  &nbsp;&nbsp;&nbsp;       
				  			  </option>
						   <option value = "5">

				  				  				  &nbsp;&nbsp;&nbsp;
				  Affinity Group
				  &nbsp;&nbsp;&nbsp;       
				  			  </option>
						   <option value = "6">
				  				  				  &nbsp;&nbsp;&nbsp;
				  Volunteer
				  &nbsp;&nbsp;&nbsp;       
				  			  </option>
						   <option value = "7">
				  				  				  &nbsp;&nbsp;&nbsp;

				  Micro-credit Loan
				  &nbsp;&nbsp;&nbsp;       
				  			  </option>
						   <option value = "8">
				  				  				  &nbsp;&nbsp;&nbsp;
				  Petition
				  &nbsp;&nbsp;&nbsp;       
				  			  </option>	
					</select>
		
		<br/><br/><br />		
		<input type="button" onclick ="send()"   value="Send" class="submit" />		
		<input type="hidden" name="url" id="url" value="http://" />
		<input type="hidden" name="phase" value="2" />
		<input type="hidden" name="randkey" value="4542480" />
		<input type="hidden" name="id" id="id" value="" />
	</form>
</fieldset>                                               	

<br /><br />

<script type="text/javascript">
	function send(){
		if(viewer){
			var form = document.getElementById("thisform");
			document.getElementById("id").value = viewer.getId();
			form.action = "/enviar";
			form.submit();
		}else{
			alert("Login to post a new action !!!");		
		}	
	}	
</script>

	
{%endblock%}